﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class FirstConnectProtocolResponse : ProtocolResponseInterface
{
    public bool Response(byte[] data, int ProtocolBodyLength)
    {
        Console.WriteLine("接收到处理协议");
        FirstConnectProtocol protocol = (FirstConnectProtocol)NetworkUtils.GetProtoccObject(data,ProtocolBodyLength);
        Console.WriteLine($"首次同步协议，服务端IP是{protocol.IP} 端口为;{protocol.port},携带信息{protocol.Data}");

        return true;
    }
}

